package algo;

public class Maillon {
	private int valeur;
	private Maillon next;
	public Maillon (int v, Maillon s){
		valeur = v;
		next = s;
	}
	public String toString (){
		return " " + valeur;
	}

	public int getValeur() {
		return valeur;
	}
	public void setValeur(int valeur) {
		this.valeur = valeur;
	}

	public Maillon getNext() {
		return next;
	}
	public void setNext(Maillon next) {
		this.next = next;
	}
	
}
